module bus_judge(
       input [3:0] judge_code, //仲裁码
		 input [17:0] index_0,
		 input [17:0] index_1,
		 input [17:0] index_2,
		 input [17:0] index_3,
		 input [17:0] index_4,
		 input [17:0] index_5,
		 input [17:0] index_6,
		 input [17:0] index_7,
		 input [17:0] index_8,
		 input [17:0] index_9,
		 input [17:0] index_10,
		 input [17:0] index_11,
		 input [17:0] index_12,
		 input [17:0] index_13,
		 input [17:0] index_14,
		 input [17:0] index_15,
		 output reg [17:0] index
);
always@(*)
begin
case(judge_code)
4'h0:index = index_0;
4'h1:index = index_1;
4'h2:index = index_2;
4'h3:index = index_3;
4'h4:index = index_4;
4'h5:index = index_5;
4'h6:index = index_6;
4'h7:index = index_7;
4'h8:index = index_8;
4'h9:index = index_9;
4'ha:index = index_10;
4'hb:index = index_11;
4'hc:index = index_12;
4'hd:index = index_13;
4'he:index = index_14;
4'hf:index = index_15;
endcase
end
endmodule 